package com.yikome.product.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.yikome.common.CommonRepository;
import com.yikome.product.entity.ProductSet;

@Repository
public interface ProductSetRepository extends CommonRepository<ProductSet, Long> {

	@Query("select t from ProductSet t where t.productId = :productId order by setNumber")
	List<ProductSet> findByProductId(@Param("productId") Long productId);
}
